package com.cq.base.mvp

import android.util.Log

/**
 * 作者: CQ
 * 日期: 2021-03-23
 * 说明: MVP基类presenter
 */
public abstract class BasePresenter<V : BaseIView> : BaseIPresenter<V> {
   protected lateinit var view: V

    override fun attach(view: BaseIView) {
        this.view = view as V
        Log.e("--", "1111")
    }

    override fun onCreate() {
    }

    override fun onResume() {
    }

    override fun onDestroy() {
        detach()
    }

    override fun detach() {

    }

}